package com.chenfan.mcn.clients.privilege;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.chenfan.common.core.entity.BusinessEntity;
import lombok.Data;

import java.io.Serializable;

/**
 * @Description: 公司部门表
 * @author: weishili
 * @date: 20/7/12
 * @version: V1.0
 */
@Data
@TableName(value = "s_department")
@SuppressWarnings("AlibabaClassNamingShouldBeCamel")
public class SDepartment extends BusinessEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 部门id
     */
    @TableId(value = "department_id", type = IdType.ASSIGN_ID)
    private Long departmentId;

    /**
     * 上级code，顶级为 -1
     */
    private String parentCode;

    /**
     * 部门code
     */
    private String departmentCode;

    /**
     * 部门名称
     */
    private String departmentName;

    /**
     * 部门类型0=’普通部门’，1=’虚拟部门’
     */
    private Integer departmentType;

    /**
     * 所属公司
     */
    private Long companyId;

    /**
     * 部门负责人id
     */
    private Long departmentHeadId;

    /**
     * 公司类型
     */
    private String companyType;

    /**
     * 手机号
     */
    private String mobilePhone;

    /**
     * 传真
     */
    private String fax;

    /**
     * 地址
     */
    private String address;

    /**
     * 备注
     */
    private String remark;

    /**
     * 排序
     */
    private Integer orderNum;

}